# **********************************************************************
# *******                     UO Global Array                   ********
# **********************************************************************



#CXX_FLAGS = -I.

ifeq ($(TERM_PROGRAM),Apple_Terminal)
	iflag=
	lflag=
else
	iflag=-I/usr/lib64/openmpi/1.2.5-gcc/include
	#lflag=-L/usr/lib64/openmpi/1.2.5-gcc/lib
	lflag=
endif

all:
	echo "You can make smalltest, mediumtest or matrixtest"

#libuoga.so: globalarray.h globalarray.c
#	mpicc -fPIC -Wall -shared -o libuoga.so globalarray.c 

smalltest: smalltest.c globalarray.c globalarray.h uohashtable.c uohashtable.h
	mpicc $(iflag) $(lflag) -o smalltest smalltest.c globalarray.c globalarray.h uohashtable.c uohashtable.h

mediumtest: mediumtest.c globalarray.c globalarray.h uohashtable.c uohashtable.h
	mpicc $(iflag) $(lflag) -o mediumtest mediumtest.c globalarray.c globalarray.h uohashtable.c uohashtable.h

matrixtest: matrixtest.c globalarray.c globalarray.h uohashtable.c uohashtable.h
	mpicc $(iflag) $(lflag) -o matrixtest matrixtest.c globalarray.c globalarray.h uohashtable.c uohashtable.h

m: m.c globalarray.c globalarray.h uohashtable.c uohashtable.h
	mpicc $(iflag) $(lflag) -o m m.c globalarray.c globalarray.h uohashtable.c uohashtable.h

#clean:
#	-rm -f libuoga.so "test" 

#clean:
#	rm -f smalltest

